package com.dpteam.bean;

/**
 * Created with IntelliJ IDEA.
 * User: luolei
 * Date: 2016/1/13
 * Time: 8:46
 */
public class NoticeInfo {

    /**
     *
     */
    private int id;

    /**
     *
     */
    private String title;

    /**
     *
     */
    private String message;

    /**
     *
     */
    private String publishTime;

    /**
     *
     */
    private String publisher;

    public NoticeInfo() {
    }

    public NoticeInfo(int id, String title, String message, String publishTime, String publisher) {
        this.id = id;
        this.title = title;
        this.message = message;
        this.publishTime = publishTime;
        this.publisher = publisher;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder("{");
        //Number
        sb.append("'id':").append(id).append(',');
        //String
        sb.append("'title':'").append(title).append("',");
        sb.append("'message':'").append(message).append("',");
        sb.append("'publishTime':'").append(publishTime).append("',");
        sb.append("'publisher':'").append(publisher).append("'}");
        return sb.toString();
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(String publishTime) {
        this.publishTime = publishTime;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }
}
